{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">    
				   <p class="box-title">家长反馈</p>
                </div>
                <div class="box-body">
                    <div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							   学生姓名：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							    <input type="text" class="form-control" name="student_name" value="{%$student_name%}">
						  </div> 
				    </div>
					<div class="col-md-6 col-xs-12 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding:0;font-weight:500; margin:0;">
							 时间：
						  </label>
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="{%$from%}" id="from" name="from">
							     <div class="input-group-addon" style="padding:6px 7px;">
									<i class="fa fa-calendar"></i>
								 </div>
						  </div>
						  <span style="float:left;">  ~  </span >
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
							      <div class="input-group-addon" style="padding:6px 7px;">
									 <i class="fa fa-calendar"></i>
								 </div>
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					  
					   <input type="hidden" name="a" value="notice.familytercherlist">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:10px;"></div>

                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style=" background-color:#a273ff;">
                                        <td>学生姓名</td>
                                        <td>家长姓名</td>
										<td>内容</td>
										<td>时间</td>
                                        <td width="110">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$notice_lists key=key item=value%}
                                    <tr>
                                        <td><a href="index.php?a=notice.commondetails&notice_id={%$value.notice_id%}">{%$value.student_name%}</a></td>
										<td>{%$value.notice_form%}</td>
                                        
										<td>{%$value.notice_content%}</td>
										<td>{%$value.create_time%}</td>
                                        <td>
                                             <a onClick="show('{%$value.student_name%}','{%$value.notice_id%}')" href="" class="btn btn-success btn-sm" data-toggle="modal" data-target="#myModal"  title="编辑"><i class="fa fa-edit"></i> </a>
											 <a class="btn btn-success btn-sm" href="index.php?a=notice.familydetails&notice_id={%$value.notice_id%}" title="查 看"><i class="fa fa-search"></i></a>
                                        </td>
                                    </tr>	
                                {%/foreach%}   
                            </tbody>
                        </table>
				   </div><!--box-body -->
				   <div class="box-footer">
				   {%$page%}
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
   <!--弹出框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
         <form action="" method="post">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">家长反馈</h4>
              </div>
              <div class="modal-body">
                   <span style="margin-left:20px;" id="bbb">姓名：</span><span id="ming"></span>
                    <div class="form-group" style="margin-top:16px;">
                        <p>回复内容:</p>
                        <textarea class="form-control" rows="3" name="notice_contents" id="fff"></textarea>
                    </div>
           
              </div>
              <div class="modal-footer center-block">
			 
			    <input type="hidden" name="notice_id" value="" id="ccc">
                <button type="submit" class="btn btn-primary">确 定</button>
              </div>
          </form>
    </div>
  </div>
</div>
<!-- ./wrapper -->
{%include file="index.footer.tpl.php"%}
 
 <script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>
  <script>

function show(a,b){
	
	$("#bbb").html(a);
	$("#ccc").val(b);
	
	}

</script>
